﻿--[[
   @brief    comment_invite desc
   @author   jeffrywang
   @version  1.0
   @date     2017/02/24
--]]

comment_invite_desc = {
    module_name = 'comment_invite',
    events = {
        {
            c_event = {
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUCCESS,
                    callback = "comment_invite_control.on_login_success"
                },
                {
                    id  = ierd_tgp.game_mgr.GAME_MGR_PROCESS_CREATED,
                    callback = 'comment_invite_control.on_game_start'
                },
                {
                    id  = ierd_tgp.game_mgr.GAME_MGR_PROCESS_DELETED,
                    callback = 'comment_invite_control.on_game_end'
                },
            },
            listen_broadcast = {
                {
                    id = "Msg_CloudGame_RunningStateChanged",
                    callback = "comment_invite_control.on_cloudgaming_state_changed"
                },
            },
            lua_file = 'comment_invite\\comment_invite_control.lua'
        }
    }
};

desc_mgr.add(comment_invite_desc);